<template>
  <div class="s-bar">
    <a v-for="(btn,k) of btns" :key="k" :class="btn.style" @click="btn.fn">{{btn.name}}</a>
  </div>
</template>

<script>
export default {
  props: {
    btns: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style scoped>
.s-bar {
  border-bottom: 1px solid #ddd;
  text-align: right;
  font-size: 0.18em;
  height: 2.8em;
  a {
    text-align: center;
    line-height: 2.4;
    color: #26a2ff;
    background-color: #34abd7;
    border-radius: 0.18em;
    color: #fff;
    padding: 0.3em 1.5em;
    margin-right: 0.8em;
  }
  .gray {
    color: #999;
    background-color: #e6e6e6;
  }
  .red {
    color: #f00;
  }
}
</style>
